<?php

class review{
public function index(){
$supplier_id = intval($GLOBALS['request']['supplier_id']);
if($supplier_id<=0)
{
$root['info']='非法登入';
output($root);
}
$supplier= $GLOBALS['db']->getRow( 'SELECT id as supplier_id,deal_cate_id  FROM '.DB_PREFIX."supplier_location  WHERE id='{$supplier_id}' AND deal_type=0  ");
$list = $GLOBALS['db']->getAll('select id,name from '.DB_PREFIX.'point_group as pg left join '.DB_PREFIX.'point_group_link as pgl on pg.id = pgl.point_group_id  where pgl.category_id = '.$supplier['deal_cate_id'].' order by sort asc');
$root['supplier_id']=$supplier_id;
$root['item']=$list;
output($root);
}
}
?>